//
//  SEGVisitorAccessViewModel.h
//  SEGViewModel
//
//  Created by 乔杨 on 2020/6/2.
//

#import <Foundation/Foundation.h>
#import "SEGVisitorAccessHistoryModel.h"

NS_ASSUME_NONNULL_BEGIN

#define kCustomerNamePlaceholder @"请填写访客姓名"
#define kCustomerPhonePlaceholder @"请填写访客联系电话"
#define kPhoneMaxLength 11

@interface SEGVisitorAccessViewModel : NSObject

/// 房屋Id
@property (nonatomic, copy) NSString *houseId;
/// 房屋名
@property (nonatomic, copy) NSString *houseName;
/// 选择可用次数
@property (nonatomic, copy) NSString* selectedNumber;
/// 选择的门禁信息
@property (nonatomic, strong) NSDictionary *doorInfoDict;
/// 访客姓名
@property (nonatomic, copy) NSString *custNameStr;
/// 访客电话
@property (nonatomic, copy) NSString *phoneStr;
/// 车牌号
@property (nonatomic, copy) NSString *carNumberStr;

/// 生成通行证的信号
@property (nonatomic, strong) RACSignal *passSignal;
/// 访客历史详情的信号
@property (nonatomic, strong) RACCommand *shareCommand;

// 生成通行证
- (void)seg_createPass;
// 访客历史详情
- (void)seg_sharePass;
// 访客历史详情绑定数据
- (void)seg_bindDataWithModel:(SEGVisitorAccessHistoryModel *)bindModel;

@end

NS_ASSUME_NONNULL_END
